/**
 * 
 */
package com.neal.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * @author Neal
 * @version 1.0
 * @description 
 */
@Controller
@RequestMapping("/apache")
public class ApacheController {

	@RequestMapping("/do1")
	public String do1(){
		return "apache.home";
	}
	@RequestMapping("/do2")
	public String do2(){
		return "apache.home.extend";
	}
	//WideCard
	@RequestMapping("/do3")
	public String do3(){
		return "apache.homepage2.wildcardpage1";
	}
	//GEGEXP can't work
	@RequestMapping("/do4")
	public String do4(){
		return "apache.homePage1.regexpPage2";
	}
	//EL
	@RequestMapping("/do5")
	public String do5(Model model){
		model.addAttribute("p1", "/WEB-INF/jsp/apache/page1.jsp");
		model.addAttribute("p2", "/WEB-INF/jsp/apache/page2.jsp");
		return "apache.home.el";
	}
}
